package com.org.web.api.unishop.service.impl;

import com.org.web.api.unishop.model.Merchandise;
import com.org.web.api.unishop.service.CartService;
import java.util.ArrayList;
import java.util.List;
import org.springframework.stereotype.Service;

/**
 * @author duheng
 * @Date 2021/11/11 16:44
 */
@Service
public class CartServiceImpl implements CartService {

	@Override
	public List<Merchandise> getCartList() {

		List<Merchandise> result = new ArrayList<>();
		result.add(new Merchandise(1,
				"https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1553005139&di=3368549edf9eee769a9bcb3fbbed2504&imgtype=jpg&er=1&src=http%3A%2F%2Fimg002.hc360.cn%2Fy3%2FM01%2F5F%2FDB%2FwKhQh1T7iceEGRdWAAAAADQvqk8733.jpg",
				"春装款 L", 15, "OVBE 长袖风衣", "278.00", 1));

		result.add(new Merchandise(3, "https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=2319343996,1107396922&fm=26&gp=0.jpg", "激光导航 扫拖一体", 3,
				"科沃斯 Ecovacs 扫地机器人", "1348.00", 5));

		result.add(
				new Merchandise(4, "https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=2668268226,1765897385&fm=26&gp=0.jpg", "XL", 55, "朵绒菲小西装",
						"175.88", 1));

		result.add(new Merchandise(5,
				"https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1552410549432&di=06dd3758053fb6d6362516f30a42d055&imgtype=0&src=http%3A%2F%2Fimgcache.mysodao.com%2Fimg3%2FM0A%2F67%2F42%2FCgAPD1vNSsHNm-TnAAEy61txQb4543_400x400x2.JPG",
				"520 #粉红色", 15, "迪奥（Dior）烈艳唇膏", "1089.00", 1));

		result.add(new Merchandise(6, "https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=1031875829,2994442603&fm=26&gp=0.jpg", "樱花味润手霜 30ml", 15,
				"欧舒丹（L'OCCITANE）乳木果", "128", 1));

		result.add(new Merchandise(7,
				"https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1553007107&di=390915aa8a022cf0b03c03340881b0e7&imgtype=jpg&er=1&src=http%3A%2F%2Fimg13.360buyimg.com%2Fn0%2Fjfs%2Ft646%2F285%2F736444951%2F480473%2Faa701c97%2F548176feN10c9ed7b.jpg",
				"特级 12个", 7, "新疆阿克苏苹果 特级", "58.8", 5));
		return result;
	}
}
